﻿using System.Web;
using System.Web.Optimization;

namespace EMSystem.WebSite
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/Scripts/layout").Include(
                     "~/Scripts/jquery-2.1.3.min.js",
                     "~/Scripts/jquery-easyui-1.5.3/jquery.easyui.min.js",
                     "~/Scripts/jquery.form.min.js",
                     "~/Scripts/bootstrap.min.js",
                     "~/Scripts/jquery.validate.js",
                     "~/Scripts/jquery.validate.unobtrusive.js",
                     "~/Scripts/jquery.validate.unobtrusive.extension.js",
                     "~/Scripts/jquery.validate.unobtrusive.bootstrap.tooltip.js"
               ));

            bundles.Add(new ScriptBundle("~/bundles/jqueryEasyui").Include(
                    "~/Scripts/jquery-easyui-1.5.3/jquery.easyui.min.js"
                ));



            //bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
            //            "~/Scripts/jquery-{version}.js"));

            //bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
            //            "~/Scripts/jquery-ui-{version}.js"));

            //bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
            //            "~/Scripts/jquery.unobtrusive*",
            //            "~/Scripts/jquery.validate*"));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include("~/Content/site.css"));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));


            //自定义
            bundles.Add(new StyleBundle("~/Scripts/jquery-easyui-1.5.3/themes/bootstrap/css").Include(
                 "~/Scripts/jquery-easyui-1.5.3/themes/bootstrap/easyui.css"
                ));

            bundles.Add(new StyleBundle("~/Scripts/jquery-easyui-1.5.3/themes/css").Include(
                "~/Scripts/jquery-easyui-1.5.3/themes/icon.css",
                "~/Scripts/jquery-easyui-1.5.3/themes/color.css"
                ));

            bundles.Add(new StyleBundle("~/Content/bootstrap").Include(
                 "~/Content/bootstrap-theme.css",
                 "~/Content/bootstrap.css",
                 "~/Content/css.css"
             ));

            //BundleTable.EnableOptimizations = true;
        }
    }
}
